package com.seari.mapper;

import com.seari.pojo.FlowMajor;

import java.util.List;
import java.util.Map;

public interface FlowMajorMapper {
    public List<FlowMajor> getFlowMajorStatu(Map<String,String> maps);
    public List<FlowMajor> getFlowMajorOrderDis(FlowMajor flowMajor);
    public List<FlowMajor> getFlowMajorOrderAns(FlowMajor flowMajor);
    public List<FlowMajor> getFlowMajorOrderCurrent(FlowMajor flowMajor);
    public int updDisposeTimeAndStatu(FlowMajor flowMajor);
    public String getAnsTimeByLinkIdForDiffTime(FlowMajor flowMajor);
    public String getFlowCount(String faultId);

    public Integer getflowIsExit(String faultId);
    public Integer getAnswerMaxLinkId(String faultId);
    public Integer getDisposeMinLinkId(String faultId);
    public String getAnswerNowDiff(String faultId);
    public String getDisposeNowDiff(String faultId);
    /**
     * 通过故障id查询
     * @param faultId
     * @return
     */
    public List<FlowMajor>queryMajorByFaultId(String faultId);

    public List<Integer> getFlowAllMajor(String faultId);

    /**
     * 响应时间差值
     * @param faultId
     * @return
     */
    public String getDisposeTime(String faultId);
    /**
     * 处置时间差值
     * @param faultId
     * @return
     */
    public String getDisposeTimeDiff(String faultId);

    /**
     * 相应时间差值
     * @param faultId
     * @return
     */
    public String getAnswerTimeDiff(String faultId);

    /**
     * 更新当前节点 状态为2
     * @param flowMajor
     * @return
     */
    public int updCurrentNodeStatu(FlowMajor flowMajor);

    /**
     * 获取当前节点的十几操作时间
     * @param flowMajor
     * @return
     */
    public FlowMajor getCurrentDisAnsTime(FlowMajor flowMajor);

    public int updDisposeTimeAndStatuZ(FlowMajor flowMajor);

    /**
     * 查询当前故障点是否存在有尚未处理完的专业故障点
     */
    public int selFlowIsMajor(String faultId);

    /**
     * 更新预计完成时间 根据 对比值
     * @param flowMajor
     * @return int
     */
    public int updAnsTimeForDisAnsDiff(FlowMajor flowMajor);
}
